import request from "@/utils/request";

const modules = {
  // 获取商品信息
  getGoodsinfo: (params) =>
    request({
      method: "get",
      params,
      url: "/goods/getGoodsDetail",
    }),
  //立即购买
  buyNow: (data) =>
    request({
      method: "post",
      data,
      url: "/settle/buyNow",
    }),
};

export default modules;
